package com.czh.springboot04.mapper;

import com.czh.springboot04.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    User findUserByUsername(String username);

    User findByUsernameAndPassword(User user);

    List<User> selectAll(User user);
    int addUser(User user);
    int deleteUser(int id);
    int deleteUsers(int[] ids);
    int updateU(User user);
    User selectById(Integer id);

    int getUserCount();
}
